package com.quanshu.shop.goods.entity;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * 作者  李哲
 * 创建时间 2018/7/25
 * 邮箱 lizhetongliao@163.com
 * 说明
 **/
@Data
public class GoodsInfoEntity implements Serializable {
    @Data
    public class DataEntity {
        /**
         * id : 10
         * name : 测试商品8
         * goods_no : SD153199987629-1
         * sell_price : 12.00
         * niu_score : 0.00
         * gp_price : 0.00
         * img : upload/2018/07/19/20180719073245218.png
         * store_nums : 200
         * spec_array : [{"id":"1","name":"颜色","type":"1","value":["红色","黑色"]},{"id":"2","name":"大小","type":"1","value":["红色","黑色","ML"]}]
         * is_inn : 127
         * is_integral : 0
         * details_img : [{"id":"1c1183a458c6820b51f572ce99800e47","img":"upload/2018/07/19/20180719073250667.png"},{"id":"62b3ca25afc7a3e355dcab1bca6fc868","img":"upload/2018/07/19/20180719073250318.png"},{"id":"77904b1f348fef069a3481be511c6da3","img":"upload/2018/07/19/20180719073245218.png"},{"id":"d221de7a0bf7fb4a8c6ea0062b2605c5","img":"upload/2018/07/19/20180719073250216.png"}]
         * category_id : 57
         * is_favorite :
         * link : http://nxd.xixilife.net/index.php?model=api&controller=api_goods&action=goodsDetails&goods_id=10&goods_id=10
         * cart_sum : 0
         */

        public String id;
        public String name;
        public String goods_no;
        public String sell_price;
        public String niu_score;
        public String gp_price;
        public String img;
        public String store_nums;
        public String is_inn;
        public String is_integral;
        public String category_id;
        public String is_favorite;
        public String link;
        public int cart_sum;
        private String content;
        private String video;
        public List<SpecArrayEntity> spec_array;
        public List<DetailsImgEntity> details_img;
        @Data
        public class SpecArrayEntity {
            /**
             * id : 1
             * name : 颜色
             * type : 1
             * value : ["红色","黑色"]
             */

            public String id;
            public String name;
            public String type;
            public List<String> value;
        }
        @Data
        public class DetailsImgEntity {
            /**
             * id : 1c1183a458c6820b51f572ce99800e47
             * img : upload/2018/07/19/20180719073250667.png
             */

            public String id;
            public String img;
        }
    }
}
